package com.didi.gulimall.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 发送消息日志
 *
 * @author didi
 * @email 1062664904@qq.com
 * @date 2021-06-03 21:34:13
 */
@Data
@TableName("local_mq")
public class LocalMqEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    public LocalMqEntity() {

    }

    public LocalMqEntity(String id, String exchange, String routeKey, String body, String classType) {
        this.id = id;
        this.exchange = exchange;
        this.routeKey = routeKey;
        this.body = body;
        this.classType = classType;
    }


    /**
     * id
     */
    @TableId(type = IdType.INPUT)
    private String id;
    /**
     * 交换机
     */
    private String exchange;
    /**
     * 路由key
     */
    private String routeKey;
    /**
     * 消息内容
     */
    private String body;
    /**
     * 状态
     */
    private Integer status;
    /**
     * 重试次数
     */
    private Integer retries;
    /**
     * 发送时间
     */
    private Date createdTime;
    /**
     * 处理时间
     */
    private Date processingTime;

    private String classType;


}
